package org.dtrd.config.system;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author 萧
 * @date:2021-08-22 10:27 下午
 **/
public class SystemState {

    @Getter
    @AllArgsConstructor
    public enum ResponseState {
        /**
         *
         */
        STATE_SUCCESS(200, "操作成功"),
        STATE_PARAMS_ERROR(1001, "参数错误"),
        STATE_PARAMS_MISSING(1002, "缺少必要参数"),
        STATE_OPERATION_FAILURE(1003, "操作失败"),
        STATE_DATA_ERROR(1004, "数据错误"),
        STATE_NO_RECORD(1005, "查无数据"),
        STATE_REQUEST_FAILURE(1006, "请求失败"),
        STATE_VERIFY_FAILURE(1007, "校验失败"),
        STATE_PHONE_REPETITION(1008, "手机号重复"),
        STATE_NO_SUBSCRIBE(4001, "未关注公众号");


        private int code;
        private String msg;

    }

}
